import './assets/main.scss'

import { createApp } from 'vue'
import pinia from '@/stores'
import App from './App.vue'
import router from './router'

// https://unocss.nodejs.cn/integrations/vite#edit-classes-in-devtools
import 'virtual:uno.css'
//切换dark时使用的样式
import 'element-plus/theme-chalk/dark/css-vars.css'
//import 'element-plus/theme-chalk/display.css'
//通过api调用需要单独引入样式
import 'element-plus/es/components/message-box/style/css'
import 'element-plus/es/components/message/style/css'
//使用element plus的图标
import * as ElementPlusIconsVue from '@element-plus/icons-vue'

const app = createApp(App)

for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component)
}
app.provide('$elementPlusIconsVue', ElementPlusIconsVue)
app.use(pinia)
app.use(router)

app.mount('#app')
